package org.hgvc.webapp.ets.bo;

import java.io.Serializable;
import java.util.Date;

import org.jocsb.base.util.SpringUtils;

public class PartnerDocument implements Serializable {

	private String partnerDocId;
	private String code;
	private String type;
	private String name;
	private org.jocsb.base.bo.User createdBy;
	private org.jocsb.base.bo.User modifiedBy;
	private Date createdDate;
	private Date modifiedDate;
	private String isDeleted;
	private String typeLabel;
	private boolean markAsAction;
	
	public PartnerDocument(){
		
	}
	
	public PartnerDocument(String partnerDocId){
		this.partnerDocId = partnerDocId;
	}
	
	public String getPartnerDocId() {
		return partnerDocId;
	}
	public void setPartnerDocId(String partnerDocId) {
		this.partnerDocId = partnerDocId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public org.jocsb.base.bo.User getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(org.jocsb.base.bo.User createdBy) {
		this.createdBy = createdBy;
	}
	public org.jocsb.base.bo.User getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(org.jocsb.base.bo.User modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public Date getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public String getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getTypeLabel() {
		if(type!=null){
			return SpringUtils.getMessage(type, new Object[]{});
		}
		return "";
	}

	public boolean isMarkAsAction() {
		return markAsAction;
	}

	public void setMarkAsAction(boolean markAsAction) {
		this.markAsAction = markAsAction;
	}

	
}
